package ch4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Member {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入卡号：");
        int cardNo=in.nextInt();
        //if(cardNo>=1000&&cardNo<10000)
        if(!(cardNo<1000||cardNo>=10000)){
            System.out.println("请输入生日：");
            String birth=in.next();
            System.out.println("输入积分：");
            int score = in.nextInt();
            System.out.println(cardNo+","+birth+","+score);
        }else{
            System.out.println("卡号输入错误！");
        }
    }
}
